| Author | Manuela Ruiz (mruiz@lcc.uma.es) |
This class represents a node of a linear linked list
returns::a new LinearLinkedListNode, identical to this one, except for the field _next which is nil in the cloned one
# File lib/data-structures.rb, line 56
56: def clone()
57: new_list = nil
58: if ((@list.kind_of? Fixnum) or !@list)
59: new_list = @list
60: else
61: new_list = @list.clone
62: end
63: new_key = nil
64: if @key.kind_of? Fixnum
65: new_key = @key
66: else
67: new_key = @key.clone
68: end
69: return LinearLinkedListNode.new(new_key, new_list, nil)
70: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.